
package Navigation;

import java.util.Hashtable;

class LinkCollectionImpl implements ICollection {
    
	private Hashtable<Integer, LinkTopologyObjectImpl> links;
	
	public LinkCollectionImpl(){
		links = new Hashtable<Integer, LinkTopologyObjectImpl>();
    }

    public void add(ITopologyObject obj) {
        if(obj.getClass() == LinkTopologyObjectImpl.class){
        	LinkTopologyObjectImpl link = (LinkTopologyObjectImpl)obj;
        	addLink(link);
        }
    }
    
    private void addLink(LinkTopologyObjectImpl link){
    	links.put(link.getID(), link);
    }

	public ITopologyObject getTopologyObject(Object key) {
		// TODO Auto-generated method stub
		return null;
	}

}
